import java.time.Year;

public class Thoroughbred {
    private Thoroughbred mother;
    private Thoroughbred father;
    private int birthYear;

    // 构造函数
    public Thoroughbred(Thoroughbred mother, Thoroughbred father, int birthYear) {
        this.mother = mother;
        this.father = father;
        this.birthYear = birthYear;
    }

    // 获取当前年龄
    public int getCurrentAge() {
        int currentYear = Year.now().getValue();
        return currentYear - birthYear;
    }

    // 获取父亲信息
    public Thoroughbred getFather() {
        return father;
    }

    // 获取母亲信息
    public Thoroughbred getMother() {
        return mother;
    }

    // 获取出生年份
    public int getBirthYear() {
        return birthYear;
    }
}
